﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hutech.Authentication.Library.Web.Framework;
using Resources;
using Hutech.Authentication.Library.Business.WebHelpers;
using log4net;
using Hutech.Authentication.Library.Business;
using System.Text;

namespace Hutech.CRM.Web.Admin
{
    public partial class SecurityRoles : hutechBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!WebUser.IsAdminOrRoleAdmin)
            {
                SiteUtils.RedirectToAccessDeniedPage(this);
                return;
            }
            SecurityHelper.DisableBrowserCache();
            PopulateLabels();
        }
        private void PopulateLabels()
        {
            Title = Resource.AdminMenuRoleAdminLink;
            spnTitle.InnerText = Resource.SecurityRolesTitle;

            lnkAdminMenu.Text = Resource.AdminMenuLink;
            lnkAdminMenu.ToolTip = Resource.AdminMenuLink;
            //  lnkAdminMenu.NavigateUrl = SiteRoot + "/Admin/AdminMenu.aspx";
            lnkRoleManager.Text = Resource.AdminMenuRoleAdminLink;
            lnkRoleManager.ToolTip = Resource.AdminMenuRoleAdminLink;
            //   lnkRoleManager.NavigateUrl = SiteRoot + "/Admin/RoleManager.aspx";

        }
    }
}
